package com.wind.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Hello {

    @Value("${persion.last-name}")
    private String name;

    @RequestMapping("/hello")
    public String goHello(){
        return "你好 我来啦！";
    }

    @RequestMapping("/sayHello")
    public String sayHello(){
        return "你好 "+ name +",我来啦！";
    }


}
